<h2 class="h2-title">Tạo trang mới !!!</h2>

<?php if(isset($msg) AND $msg != ''):?>
<ul class="notification err">
    <li class="notifi_img"><img src="<?=base_url()?>assets/backend/css/images/icons/cross_circle.png"/></li>

    <li class="msg"><?=$msg?></li>

    <li class="close"><img src="<?=base_url()?>assets/backend/css/images/icons/cross_grey_small.png"/></li>

</ul><!--End of .notification -->

<?php else:?>

<div class="form_input_index">
    <ul class="form_text">
    <form action="<?=base_url()?>backend/pages/createpages" method="POST">
        <li class="text_input">Tên trang</li>
        <li><input type="text" value="" name="pages_name" class="input-post"/></li>
        <?= form_error('pages_name','<li class="errors">','</li>'); ?>

        <li class="text_input">Tên trang không dấu</li>
        <li><input type="text" value="" name="pages_title" class="input-post"/></li>
        <?= form_error('pages_title','<li class="errors">','</li>'); ?>

        <li class="text_input">Vị trí</li>
        <li><input type="text" value="999" name="pages_order" class="input-post"/></li>
        <?= form_error('pages_order','<li class="errors">','</li>'); ?>

        <li class="text_input">Chế độ mở</li>
        <select name="pages_open">
            <option value="1">Mở tại trang hiện tại</option>
            <option value="0">Mở tab mới</option>
        </select>

        <li class="text_input">Trạng thái</li>
        <select name="pages_status">
            <option value="1">Hiển thị</option>
            <option value="0">Ẩn</option>
        </select>

        <div style="clear: both;"></div>

        <input type="submit" class="sub" value="Đồng ý" name="sub"/>
        <input type="reset" class="sub" value="Nhập lại" name="sub"/>
    </form>
    </ul>
</div>
<?php endif;?>